import Vue from 'vue'
import App from './App'
import store from './store'
import {
	text,
	goPage,
	goSwitch,
	goReLaunch,
	goBack,
	goRedirectTo
} from "./util/util.js"

Vue.prototype.text = text
Vue.prototype.goPage = goPage
Vue.prototype.goSwitch = goSwitch
Vue.prototype.goReLaunch = goReLaunch
Vue.prototype.goBack = goBack
Vue.prototype.goRedirectTo = goRedirectTo




import $http from "util/https/index.js"
Vue.prototype.$http = $http
console.log($http)

import $http2 from "util/https2/index.js"
Vue.prototype.$http2 = $http2


import common from './util/common.js'
Vue.prototype.$noMultipleClicks = common.noMultipleClicks;

import * as filters from "./util/filters.js"
// 注册全局过滤器
Object.keys(filters).forEach(key => {
	Vue.filter(key, filters[key]);
});

import rulesMixin from "./util/rulesMixin.js"
Vue.use(rulesMixin)


// #ifdef APP-PLUS
const FileManagerModule = uni.requireNativePlugin("FileManagerModule")
Vue.prototype.FileManagerModule = FileManagerModule;
// #endif










Vue.config.productionTip = false
App.mpType = 'app'

const app = new Vue({
	...App,
	store
})
app.$mount()